package com.cskaoyan.bean.wx_coupon;

import com.cskaoyan.bean.promotion.coupon.Coupon;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.pagehelper.PageInfo;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description:
 * @Author: WD created on 2021-09-21 16:55
 * @Version:
 */
@NoArgsConstructor
@Data
public class WXShowCouponListVO {


    private Long total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<WXCouponListInnerCoupon> list;


    public WXShowCouponListVO(PageInfo<Coupon> pageInfo, ArrayList<WXCouponListInnerCoupon> innerCoupons) {
        this.limit = pageInfo.getPageSize();
        this.total =pageInfo.getTotal();
        this.pages = pageInfo.getPages();
        this.page =pageInfo.getPageNum();
        this.list = innerCoupons;


    }
}
